package com.infore.remoteControl.serviceBetweenInterface.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.infore.remoteControl.serviceBetweenInterface.service.IRemoteControlAndStationManageService;
import com.infore.remoteControl.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 远程控制与站点管理控制器
 * @author Cold
 *
 */
@Api(value = "远程控制与站点管理控制器接口", tags = {"远程控制与站点管理控制器接口" })
@RestController
@RequestMapping("/remoteAndStation")
public class RemoteControlAndStationManageController {
	
	@Autowired
	IRemoteControlAndStationManageService iRemoteControlAndStationManageService;
	
	@ApiOperation(value = "根据协议查询站点")
	@RequestMapping(value = "/stations", method = RequestMethod.GET)
	public ResultEntity stations(String protocolDataId) {
		return iRemoteControlAndStationManageService.stations(protocolDataId);
	}
	
	@ApiOperation(value = "根据指令查询设备")
	@RequestMapping(value = "/equipment", method = RequestMethod.GET)
	public ResultEntity equipment(String instructionsId) {
		return iRemoteControlAndStationManageService.equipment(instructionsId);
	}
	
	
}
